package com.pig4cloud.pig.admin.hander;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.executor.XxlJobExecutor;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import static com.xxl.job.core.biz.model.ReturnT.SUCCESS;

/**
 * @ClassName DemoJobHandler
 * @Author ZouXianLiang
 * @Date 2021/6/22 16:39
 */
@Slf4j
@Component
public class DemoJobHandler {

	@XxlJob("demoJobHandler")
	public ReturnT<String> demoJobHandler(String s) {
		log.info("定时任务执行" + s);
		return SUCCESS;
	}
}
